﻿using System;
using System.Collections.Generic;

namespace DataManage
{
    [Serializable]
    public class CustomResourceCollection
    {
        public List<CustomResource> CustomResources { get; set; }

        public CustomResourceCollection() 
        {

            #region 告警 | 故障
            CustomResources = new List<CustomResource>()
            {
                new CustomResource()
                {//电池故障代码1，bit0-bit1
                    ResourceIndex = 13,
                    BitIndex = 0,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "总电压过高告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "总电压过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "总电压过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码1，bit2-bit3
                    ResourceIndex = 14,
                    BitIndex = 1,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "总电压过低告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "总电压过低故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "总电压过低严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码1，bit4-bit5
                    ResourceIndex = 15,
                    BitIndex = 2,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "单体电压过高告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "单体电压过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "单体电压过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码1，bit6-bit7
                    ResourceIndex = 16,
                    BitIndex = 3,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "单体电压过低告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "单体电压过低故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "单体电压过低严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码2，bit0-bit1
                    ResourceIndex = 17,
                    BitIndex = 0,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "电池温度过高警告"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "电池温度过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "电池温度过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码2，bit2-bit3
                    ResourceIndex = 18,
                    BitIndex = 1,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "电池温度过低告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "电池温度过低故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "电池温度过低严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码2，bit4-bit5
                    ResourceIndex = 19,
                    BitIndex = 2,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "充电电流过高告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "充电电流过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "充电电流过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码2，bit6-bit7
                    ResourceIndex = 20,
                    BitIndex = 3,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "放电电流过高告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "放电电流过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "放电电流过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码3，bit0-bit1
                    ResourceIndex = 21,
                    BitIndex = 0,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "压差过大告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "压差过大故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "压差过大严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码3，bit2-bit3
                    ResourceIndex = 22,
                    BitIndex = 1,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "温差过大告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "温差过大故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "温差过大严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码3，bit4-bit5
                    ResourceIndex = 23,
                    BitIndex = 2,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "SOC过高告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "SOC过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "SOC过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码3，bit6-bit7
                    ResourceIndex = 24,
                    BitIndex = 3,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "SOC过低告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "SOC过低故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "SOC过低严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码4，bit0-bit1
                    ResourceIndex = 25,
                    BitIndex = 0,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "SOH过低告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "SOH过低故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "SOH过低严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码4，bit2-bit3
                    ResourceIndex = 26,
                    BitIndex = 1,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "SOR过高告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "SOR过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "SOR过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码4，bit4-bit5
                    ResourceIndex = 27,
                    BitIndex = 2,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "极柱温度过高告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "极柱温度过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "极柱温度过高严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池故障代码4，bit6-bit7
                    ResourceIndex = 28,
                    BitIndex = 3,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "簇间电流不一致告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "簇间电流不一致故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "簇间电流不一致严重故障"
                        },
                    }
                },
                new CustomResource()
                {//BMS故障代码1，bit0-bit7
                    ResourceIndex = 29,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "单体电压检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "VCMU温度检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "TCMU温度检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "电流检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "绝缘检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "电池总压检测故障-总压1"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "簇总压检测故障-总压2"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "负极总压检测故障"
                        },
                    }
                },
                new CustomResource()
                {//BMS故障代码2，bit0-bit7
                    ResourceIndex = 30,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "总电压4检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "总电压5检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "总电压6检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "系统温度检测故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "继电器驱动故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "实时时钟故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "参数EE故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "录波EE故障"
                        },
                    }
                },
                new CustomResource()
                {//BMS故障代码3，bit0-bit4
                    ResourceIndex = 31,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "事件存储flash故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "程序存储flash故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "参数配置异常告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "总压和累计总压不匹配故障"
                        },
                    }
                },
                new CustomResource()
                {//BMS故障代码4，bit0-bit7
                    ResourceIndex = 32,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "V-CAN通讯故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "T-CAN通讯故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "R-CAN通讯故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "P-CAN通讯故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "S-CAN通讯故障（Sensor）"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "C-CAN通讯故障（充电机）"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "RS485_1通讯故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "RS485_2通讯故障"
                        },
                    }
                },
                new CustomResource()
                {//BMS故障代码5，bit0-bit1
                    ResourceIndex = 33,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "RS485_3通讯故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "以太网通讯故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码1，bit0-bit1
                    ResourceIndex = 34,
                    BitIndex = 0,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "绝缘电阻低告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "绝缘电阻低故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "绝缘电阻低严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码1，bit2-bit3
                    ResourceIndex = 35,
                    BitIndex = 1,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "供电欠压告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "供电欠压故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "供电欠压严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码1，bit4-bit5
                    ResourceIndex = 36,
                    BitIndex = 2,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "供电过压告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "供电过压故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "供电过压严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码1，bit6-bit7
                    ResourceIndex = 37,
                    BitIndex = 3,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "充电口过温告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "充电口过温故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "充电口过温严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码2，bit0-bit1
                    ResourceIndex = 38,
                    BitIndex = 0,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "簇/域环境低温告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "簇/域环境低温故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "簇/域环境低温严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码2，bit2-bit3
                    ResourceIndex = 39,
                    BitIndex = 1,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "簇/域环境过温告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "簇/域环境过温故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "簇/域环境过温严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码2，bit4-bit5
                    ResourceIndex = 40,
                    BitIndex = 2,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "电池仓过湿告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "电池仓过湿故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "电池仓过湿严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码2，bit6-bit7
                    ResourceIndex = 41,
                    BitIndex = 3,
                    IsBitIndexEnable = true,
                    ResourceInfo = new List<FaultInfo>()
                    {
                        //new FaultInfo()
                        //{
                        //    FaultIndex = 0,
                        //    Level = 0,
                        //    Description = "正常"
                        //},
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "电池仓过温告警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 2,
                            Level = 2,
                            Description = "电池仓过温故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 3,
                            Level = 3,
                            Description = "电池仓过温严重故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码3，bit0-bit7
                    ResourceIndex = 42,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "充电口1-CC2故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "充电口2-CC2故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "BMU风机故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "HVIL故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "均衡温度过高故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "独立温度过高"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "烟雾传感器报警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "消防灭火装置启动报警"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码4，bit1-bit7
                    ResourceIndex = 43,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "TCMU编址故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "VCMU编址故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "SBMU编址故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "电池箱/柜热管理故障/TMS故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "电池箱/柜应急排气故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 0,
                            Level = 0,
                            Description = "预留"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "加热膜过温故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "上电启动（预充）失败告警"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码5，bit0-bit7
                    ResourceIndex = 44,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "负极继电器故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "正极继电器故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "预充继电器故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "充电正继电器故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "充电负继电器故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "加热继电器故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "继电器7故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "继电器8故障"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码6，bit0-bit7
                    ResourceIndex = 45,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "TMS关闭"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "TMS预警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "水浸启动报警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "行程开关启动报警/紧急停机信号启动报警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "除湿机故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "熔断器熔断"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "断路器故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 1,
                            Description = "断路器分闸告警"
                        },
                    }
                },
                new CustomResource()
                {//电池系统故障代码7，bit0-bit7
                    ResourceIndex = 46,
                    BitIndex = 0,
                    IsBitIndexEnable = false,
                    ResourceInfo = new List<FaultInfo>()
                    {//索引值为Bit位
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "消防系统故障"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "消防单一火警"
                        },
                        new FaultInfo()
                        {
                            FaultIndex = 1,
                            Level = 2,
                            Description = "消防复合火警"
                        },
                    }
                },
            };
            #endregion
        }
    }
}
